-- GENERATED SPELL FOR [Hath'ar Broodmaster] --


function spell0_28412(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(9613,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28412', 3000, 1)
end

function spell1_28412(pUnit, Event) --@Web Wrap,n/a--
pUnit:FullCastSpellOnTarget(54453,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28412', 3000, 1)
end

function Sorts_28412(pUnit, Event)
local choix_sorts_28412 = math.random(0, 1)
if choix_sorts_28412 == 0 then
pUnit:RegisterEvent('spell0_28412', 1, 1)
end
if choix_sorts_28412 == 1 then
pUnit:RegisterEvent('spell1_28412', 1, 1)
end
end

function mob28412_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28412', math.random(1500, 3000), 1)
end

function mob28412_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28412_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28412_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28412, 1, 'mob28412_Action')
RegisterUnitEvent(28412, 2, 'mob28412_Leave')
RegisterUnitEvent(28412, 3, 'mob28412_Kill')
RegisterUnitEvent(28412, 4, 'mob28412_Die')
